package com.mingqijia.gassafety.webserver.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("设备通知记录出参")
@Data
public class RecordResponse {
    @ApiModelProperty(value = "通知开始时间 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "通知结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "故障离线时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date eventTime;

    @ApiModelProperty(value = "触发规则id")
    private Integer strategyId;

    @ApiModelProperty(value = "规则类型")
    private String strategyType;

    @ApiModelProperty(value = "触发规则名")
    private String ruleName;

    @ApiModelProperty(value = "策略对象")
    private String StrategyObject;

    @ApiModelProperty(value = "设备号")
    private String iMEI;

    @ApiModelProperty(value = "状态：0执行中 1手动暂停 2报警解除，系统暂停")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "当前任务唯一识别码")
    private String taskIdentificationCode;

    @ApiModelProperty(value = "用户id")
    private Integer consumerId;

}
